package com.class5.springboot.entity;

import com.class5.springboot.frame.repo.entity.SuperEntity;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * tb_xt_menu 系统菜单表 
 **/
@SuppressWarnings("serial")
public class TbXtMenu extends SuperEntity implements Serializable {

    /**主键(id)*/
    private Long id;

    /**菜单url(menu_url)*/
    private String menuUrl;

    /**菜单名称(menu_name)*/
    private String menuName;

    /**父菜单级别(menu_level)*/
    private String menuLevel;

    /**父菜单Id(parent_id)*/
    private Long parentId;

    /**备注(note)*/
    private String note;

    /**创建时间(create_time)*/
    private Timestamp createTime;

    /**更新时间(modify_time)*/
    private Timestamp modifyTime;

    public TbXtMenu() {
    }

    public TbXtMenu(Long id, Timestamp createTime) {
        this.id = id;
        this.createTime = createTime;
    }

    public Long getId() {
        return id;
    }

    public TbXtMenu setId(Long id) {
        addOriginalData("id", this.id, id);
        this.id = id;
        return this;
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public TbXtMenu setMenuUrl(String menuUrl) {
        addOriginalData("menu_url", this.menuUrl, menuUrl);
        this.menuUrl = menuUrl;
        return this;
    }

    public String getMenuName() {
        return menuName;
    }

    public TbXtMenu setMenuName(String menuName) {
        addOriginalData("menu_name", this.menuName, menuName);
        this.menuName = menuName;
        return this;
    }

    public String getMenuLevel() {
        return menuLevel;
    }

    public TbXtMenu setMenuLevel(String menuLevel) {
        addOriginalData("menu_level", this.menuLevel, menuLevel);
        this.menuLevel = menuLevel;
        return this;
    }

    public Long getParentId() {
        return parentId;
    }

    public TbXtMenu setParentId(Long parentId) {
        addOriginalData("parent_id", this.parentId, parentId);
        this.parentId = parentId;
        return this;
    }

    public String getNote() {
        return note;
    }

    public TbXtMenu setNote(String note) {
        addOriginalData("note", this.note, note);
        this.note = note;
        return this;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public TbXtMenu setCreateTime(Timestamp createTime) {
        addOriginalData("create_time", this.createTime, createTime);
        this.createTime = createTime;
        return this;
    }

    public Timestamp getModifyTime() {
        return modifyTime;
    }

    public TbXtMenu setModifyTime(Timestamp modifyTime) {
        addOriginalData("modify_time", this.modifyTime, modifyTime);
        this.modifyTime = modifyTime;
        return this;
    }

    @Override()
    public String toString() {
        return this.getClass().getName() + ":{id:" + id + ",menuUrl:" + menuUrl + ",menuName:" + menuName + ",menuLevel:" + menuLevel + ",parentId:" + parentId + ",note:" + note + ",createTime:" + createTime + ",modifyTime:" + modifyTime + "}";
    }

    @Override()
    public boolean equals(Object arg0) {
        return ((TbXtMenu) arg0).getId().equals(id);
    }

    @Override()
    public int hashCode() {
        return id == null ? 0 : id.hashCode();
    }
}
